/* 事件监控仪表板专用样式 */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.8rem 0;
    padding: 0.5rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 6px;
}

.metric-label {
    font-weight: 500;
    color: #34495e;
}

.metric-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.refresh-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    font-style: italic;
}

.error-message {
    background: #e74c3c;
    color: white;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    text-align: center;
}

.alert-item {
    padding: 0.8rem;
    margin: 0.5rem 0;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.alert-item.error {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.alert-item.warning {
    border-left-color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.alert-time {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.3rem;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-online {
    background: #27ae60;
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
}

.status-offline {
    background: #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

/* 仪表板特定的响应式设计 */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .metric {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .refresh-btn {
        width: 100%;
        padding: 1rem;
    }
}